<!--#include("./header.html")-->

<div id="content" class="cleared">
    <div cond="$XE_VALIDATOR_MESSAGE" class="xe-ui-message {$XE_VALIDATOR_MESSAGE_TYPE} gradient cleared">
        <a href="#" style="float: right;" onclick="jQuery(this).parent().remove();return false;" class="xe-ui-button-gray gradient">Dismiss</a>
        <p>{$XE_VALIDATOR_MESSAGE}</p>
    </div>
    <div class="xe-ui-panel">
        <div class="xe-ui-panel-content">
            <form action="{Context::getRequestUri()}" method="post" enctype="multipart/form-data" class="form">
                <input type="hidden" name="module" value="search" />
                <input type="hidden" name="act" value="procZend_searchAdminInsertSkin" />

                <h3>{$lang->skin_default_info}</h3>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="xe-ui-form-table">
                    <tr>
                        <td><p><b>{$lang->skin}</b></p></td>
                        <td>{$skin_info->title}</td>
                    </tr>
                    <tr>
                        <td><p><b>{$lang->skin_author}</b></p></td>
                        <td>
                            <!--@foreach($skin_info->author as $author)-->
                            {$author->name} (<a href="{$author->homepage}" onclick="window.open(this.href);return false;">{$author->homepage}</a>, <a href="mailto:{$author->email_address}">{$author->email_address}</a>)<br />
                            <!--@endforeach-->
                        </td>
                    </tr>
                    <tr>
                        <td><p><b>{$lang->homepage}</b></p></td>
                        <td><a href="{$skin_info->homepage}" onclick="window.open(this.href);return false;">{$skin_info->homepage}</a>&nbsp;</td>
                    </tr>
                    <tr>
                        <td><p><b>{$lang->date}</b></p></td>
                        <td>{zdate($skin_info->date, 'Y-m-d')}</td>
                    </tr>
                    <tr>
                        <td><p><b>{$lang->skin_license}</b></p></td>
                        <td>
                            {nl2br(trim($skin_info->license))}
                            <!--@if($skin_info->license_link)-->
                            <p><a href="{$skin_info->license_link}" onclick="window.close(); return false;">{$skin_info->license_link}</a></p>
                            <!--@end-->
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td><p><b>{$lang->description}</b></p></td>
                        <td>{nl2br($skin_info->description)}</td>
                    </tr>
                </table>

                <h3>{$lang->extra_vars}</h3>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="xe-ui-form-table">
                    <tr valign="top">
                        <td>{$lang->colorset}</td>
                        <td>
                            <!--@foreach($skin_info->colorset as $key => $val)-->
                            <!--@if($val->screenshot)-->
                            {@ $_img_info = getImageSize($val->screenshot); $_height = $_img_info[1]+40; $_width = $_img_info[0]+20; $_talign = "center"; }
                            <!--@else-->
                            {@ $_width = 200; $_height = 20; $_talign = "left"; }
                            <!--@end-->
                            <div style="float:left;text-align:{$_talign};margin-bottom:1em;width:{$_width}px;height:{$_height}px;margin-right:10px;">
                                <input type="radio" name="colorset" value="{$val->name}" id="colorset_{$key}" <!--@if($module_info->colorset==$val->name)-->checked="checked"<!--@end-->/>
                                <label for="colorset_{$key}">{$val->title}</label>
                                <!--@if($val->screenshot)-->
                                <br />
                                <img src="{$val->screenshot}" alt="{$val->title}" style="border:1px solid #888888;padding:2px;margin:2px;"/>
                                <!--@end-->
                            </div>
                            <!--@end-->
                        </td>
                    </tr>
                </table>

                <!--@foreach($skin_info->extra_vars as $key => $val)-->

                <!--@if($val->group && ((!$group) || $group != $val->group))-->
                {@$group = $val->group}
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="xe-ui-form-table">
                    <caption>{$group}</caption>
                    <!--@end-->

                    <tr>
                        <th scope="row">{$val->title}</th>
                        <td >
                            <!--@if($val->type=="text")-->
                            <!--@if(!$val->value)-->{@ $val->value = $val->default}<!--@endif-->
                            <input type="text" name="{$val->name}" value="{$val->value}" />

                            <!--@elseif($val->type=="textarea")-->
                            <textarea name="{$val->name}" rows="8" cols="42">{$val->value}</textarea>

                            <!--@elseif($val->type=="select")-->
                            <select name="{$val->name}">
                                <!--@foreach($val->options as $k=>$v)-->
                                <option value="{$v->value}" <!--@if($v->value == $val->value)-->selected="selected"<!--@end-->>{$v->title}</option>
                                <!--@end-->
                            </select>

                            <!--@elseif($val->type=="checkbox")-->
                            <!--@foreach($val->default as $k=>$v)-->
                <span>
                    <input type="checkbox" name="{$val->name}[]" value="{$v}" id="ch_{$key}_{$k}" <!--@if(in_array($v, $val->value))-->checked="checked"<!--@end--> class="checkbox" />
                    <label for="ch_{$key}_{$k}">{$v}</label>
                </span>
                            <!--@end-->

                            <!--@elseif($val->type=="radio")-->
                            <!--@foreach($val->default as $k=>$v)-->
                <span>
                    <input type="radio" name="{$val->name}" value="{$v}" id="ch_{$key}_{$k}" <!--@if($v==$val->value)-->checked="checked"<!--@end-->/>
                    <label for="ch_{$key}_{$k}">{$v}</label>
                </span>
                            <!--@end-->

                            <!--@elseif($val->type=="image")-->
                            <!--@if($val->value)-->
                            <div>
                                <img src="{$val->value}" /><br />
                                <input type="checkbox" name="del_{$val->name}" value="Y" id="del_{$val->name}" class="checkbox" />
                                <label for="del_{$val->name}">{$lang->cmd_delete}</label>
                            </div>
                            <!--@end-->

                            <input type="file" name="{$val->name}" value="" />
                            <!--@end-->

                            <!--@if($val->description)-->
                            <p>{nl2br(trim($val->description))}</p>
                            <!--@end-->
                        </td>
                    </tr>
                    <!--@end-->

                    <!--@if($group)-->
                </table>
                <!--@end-->
            </form>
            <p></p>
        </div>
        <div class="xe-ui-panel-controller">
            <hr />
            <p class="center">
                <a href="#" onclick="jQuery('.form').submit(); return false;" class="xe-ui-button-gray">{$lang->cmd_submit}</a>
            </p>
        </div>
    </div>
</div>